package cn.edu.gduf.luowowo.article.service.impl;

import cn.edu.gduf.luowowo.article.domain.DestinationAlltheme;
import cn.edu.gduf.luowowo.article.mapper.DestinationAllthemeMapper;
import cn.edu.gduf.luowowo.article.query.DestinationSearchQuery;
import cn.edu.gduf.luowowo.article.service.IDestinationAllthemeService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class DestinationAllthemeServiceImpl implements IDestinationAllthemeService {

    @Autowired
    private DestinationAllthemeMapper destinationAllthemeMapper;

    @Override
    public List<DestinationAlltheme> listAll() {
        return destinationAllthemeMapper.selectAll();
    }

    @Override
    public  List<DestinationAlltheme> queryThemeById(DestinationSearchQuery qo) {
        return destinationAllthemeMapper.selectByParentId(qo);
    }

    @Override
    public List<DestinationAlltheme> queryThemeById2(DestinationSearchQuery qo) {
        return destinationAllthemeMapper.selectByParentId2(qo);
    }

    @Override
    public List<DestinationAlltheme> queryThemeById3(DestinationSearchQuery qo) {
        return destinationAllthemeMapper.selectByParentId3(qo);
    }
}
